const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const TopicTag = new Schema({
  name: {
    type: String,
    required: true,
    unique: true
  },
  state: { type: Boolean, default: true },
  createAt: { type: Date, default: Date.now() },
  topicCount: { type: Number },
  replyCount: { type: Number }
});

module.exports = mongoose.model('topicTab', TopicTag);
